{% extends "::base.html.twig" %}
{% block title %}Recherche{% endblock %}
{% block titre %}Recherche{% endblock %}
{% block body %}
    <table class="records_list table table-striped">
        <thead>
            <tr>
                <th>Id</th>
                <th>Titre</th>
                <th>Date_repas</th>
                <th>Nombre_place</th>
                <th>Prix</th>
                <th>Menu</th>
                <th>Adresse</th>
                <th>Entree</th>
                <th>Plat</th>
                <th>Dessert</th>
                <th>Actions</th>
            </tr>
        </thead>
        <tbody>
        {% for entity in entities %}
            <tr>
                <td><a href="{{ path('repas_show', { 'id': entity.id }) }}">{{ entity.id }}</a></td>
                <td>{{ entity.titre }}</td>
                <td>{% if entity.daterepas %}{{ entity.daterepas|date('Y-m-d H:i:s') }}{% endif %}</td>
                <td>{{ entity.nombreplace }}</td>
                <td>{{ entity.prix }}</td>
                <td>{{ entity.menu }}</td>
                <td>{{ entity.adresse }}</td>
                <td>{{ entity.entree }}</td>
                <td>{{ entity.plat }}</td>
                <td>{{ entity.dessert }}</td>
                <td>
                    <ul>
                        <li>
                            <a href="{{ path('repas_show', { 'id': entity.id }) }}">show</a>
                        </li>
                        <li>
                            <a href="{{ path('repas_edit', { 'id': entity.id }) }}">edit</a>
                        </li>
                    </ul>
                </td>
            </tr>
        {% endfor %}
        </tbody>
    </table>
{% endblock %}